#include "MeshBuffers.h"

using namespace Renderer;



void Renderer::MeshBuffers::SetIndexBuffer(Renderer::IndexBuffer* val)
{
	_indexBuffer = val;
}

Renderer::IndexBuffer* Renderer::MeshBuffers::GetIndexBuffer() const
{
	return _indexBuffer;
}

VertexBufferAttributes* Renderer::MeshBuffers::GetAttribues()
{
	return _attributes;
}

Renderer::MeshBuffers::~MeshBuffers()
{
	if (_attributes)
	{
		delete _attributes;
		_attributes = 0;
	}
}

Renderer::MeshBuffers::MeshBuffers()
{
	_indexBuffer = 0;
	_attributes = new MeshVertexBufferAttributes();
}
